<div class="tag_wrapper">
    <?php
    $sizeTag = count($list_tag);
    $tagCol1 = "";
    $tagCol2 = "";
    $tagCol3 = "";
    $tagCol4 = "";
    for($i=0; $i<$sizeTag; $i++){
        $temp = "<a href='/?tag=" . $list_tag[$i]->name . "'>" . $list_tag[$i]->name . "</a><br>";
        $mode = $i % 4;
        switch ($mode){
            case 0:
                $tagCol1 .= $temp;
                break;
            case 1:
                $tagCol2 .= $temp;
                break;
            case 2:
                $tagCol3 .= $temp;
                break;
            case 3:
                $tagCol4 .= $temp;
                break;
        }
    }
    ?>
    <div class="tagColumn4">
        <?php echo $tagCol1; ?>
    </div>
    <div class="tagColumn4">
        <?php echo $tagCol2; ?>
    </div>
    <div class="tagColumn4">
        <?php echo $tagCol3; ?>
    </div>
    <div class="tagColumn4">
        <?php echo $tagCol4; ?>
    </div>
    <div class="clear_float"></div>
</div>